package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusinessActivityRelationRelMapper;
import com.ruoyi.business.domain.BusinessActivityRelationRel;
import com.ruoyi.business.service.IBusinessActivityRelationRelService;
import com.ruoyi.common.core.text.Convert;

/**
 * 教师关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-30
 */
@Service
public class BusinessActivityRelationRelServiceImpl implements IBusinessActivityRelationRelService 
{
    @Autowired
    private BusinessActivityRelationRelMapper businessActivityRelationRelMapper;

    /**
     * 查询教师关系
     * 
     * @param relId 教师关系主键
     * @return 教师关系
     */
    @Override
    public BusinessActivityRelationRel selectBusinessActivityRelationRelByRelId(Long relId)
    {
        return businessActivityRelationRelMapper.selectBusinessActivityRelationRelByRelId(relId);
    }

    /**
     * 查询教师关系列表
     * 
     * @param businessActivityRelationRel 教师关系
     * @return 教师关系
     */
    @Override
    public List<BusinessActivityRelationRel> selectBusinessActivityRelationRelList(BusinessActivityRelationRel businessActivityRelationRel)
    {
        return businessActivityRelationRelMapper.selectBusinessActivityRelationRelList(businessActivityRelationRel);
    }

    /**
     * 新增教师关系
     * 
     * @param businessActivityRelationRel 教师关系
     * @return 结果
     */
    @Override
    public int insertBusinessActivityRelationRel(BusinessActivityRelationRel businessActivityRelationRel)
    {
        return businessActivityRelationRelMapper.insertBusinessActivityRelationRel(businessActivityRelationRel);
    }

    /**
     * 修改教师关系
     * 
     * @param businessActivityRelationRel 教师关系
     * @return 结果
     */
    @Override
    public int updateBusinessActivityRelationRel(BusinessActivityRelationRel businessActivityRelationRel)
    {
        return businessActivityRelationRelMapper.updateBusinessActivityRelationRel(businessActivityRelationRel);
    }

    /**
     * 批量删除教师关系
     * 
     * @param relIds 需要删除的教师关系主键
     * @return 结果
     */
    @Override
    public int deleteBusinessActivityRelationRelByRelIds(String relIds)
    {
        return businessActivityRelationRelMapper.deleteBusinessActivityRelationRelByRelIds(Convert.toStrArray(relIds));
    }

    /**
     * 删除教师关系信息
     * 
     * @param relId 教师关系主键
     * @return 结果
     */
    @Override
    public int deleteBusinessActivityRelationRelByRelId(Long relId)
    {
        return businessActivityRelationRelMapper.deleteBusinessActivityRelationRelByRelId(relId);
    }
}
